/*
 * @Author: Leander 
 * @Date: 2019-03-02 02:05:19 
 * @Last Modified by: Leander
 * @Last Modified time: 2019-03-03 16:35:58
 */

import Vue from 'vue'
import Vuex from 'vuex'

//引入模块
import states from './states'
import getters from './getters'
import actions from './actions'
import mutations from './mutations'
import createLogger from 'vuex/dist/logger'
import state from './states';

const debug = process.env.NODE_ENV !== 'production'

Vue.use(Vuex)
export default new Vuex.Store({
  states,
  getters,
  actions,
  mutations,
  plugins: debug ? [createLogger()] : []
})
